<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>show_user</title>
</head>
<body>
<form action="" method="get">
    <input type="submit" value="搜索">
    <input type="submit" value="新增">
    <br>
    {% for i in user1 %}
        {{ i.uname}}
        {{ i.truename}}
        {{ i.tel}}
        {{ i.sex}}
        {{ i.roleid}}
        {{ i.address}}
        <a href="{% url 'users:update_user' %}?id={{ i.id }}">修改</a>
        <a href="{% url 'users:update_user' %}?id={{ i.id }}">删除</a>
        <br>
    {% endfor %}

</form>
</body>
</html>